home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: What is &Variable (declared as: char Variable[10])?
- Date: 29 Feb 1996 07:46:29 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Feb29004629@qcd.lanl.gov>
- References: <4gqpa1$3h9@alcor.usc.edu> <4gsdno$1bg@umbc9.umbc.edu>
- <4gtab6$acb@ceylon.gte.com> <313318b8.53776146@nntp.ix.netcom.com>
- <4h1u9d$sqq@ceylon.gte.com> <825539570snz@genesis.demon.co.uk>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: Lawrence Kirby's message of Wed, 28 Feb 96 20:32:50 GMT
-
- In article <825539570snz@genesis.demon.co.uk>
- Lawrence Kirby <fred@genesis.demon.co.uk> writes:
-
- <snip>
- LK: The thing that C does not really support is the idea of an array
- 'value' (or
- LK: more accurately a value with array type). For example you can't assign
-
- Technically, of course, you can have values of array types. The
- problem is that there are _completely_ useless. The only things you
- can do with them is either ignore them (i.e. cast them to void, or
- otherwise not use the value), or pass them to varargs functions which
- do not access them :-)
-
- In any case, one usually does not create them except by complicated
- mistakes. For example, using an array name does not create an array
- value.
-
- I leave the two lines below as an antidote against the indigestion
- that my post may create.
-
- <snip>
- LK: The oddity is that when evaluated an array lvalue does not generate a value
- LK: (rvalue) that has array type.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-